package cm.tl.pms.util;

import org.springframework.stereotype.Component;

/**
 * @author: lwp
 * @date: 2024/11/14 17:07
 * @description
 * @version: 1.0
 */
@Component
public class MessageNotification {

    public static final String PROJECT_IMPORT = "项目导入";
    public static final String TASK_ASSIGNMENT = "任务分配";
    public static final String DATA_ACQUISITION = "数据采集";
    public static final String REPORT_GENERATION = "报告生成";
    public static final String REPORT_EDIT = "报告编辑";
    public static final String REPORT_REVIEW = "报告审核";
    public static final String REPORT_DOWNLOAD = "报告下载";
    public static final String PROJECT_DEADLINE = "项目临期";
    public static final String USER_REGISTRATION = "用户注册";


    /**
     * 新任务
     *
     * @param checkPeriod
     * @return
     */
    public static String newQuest(String checkPeriod) {
        return "您收到一项新任务：请为" + QuarterUtil.parseCheckPeriod(checkPeriod) + "贷后管理项目分配负责客户经理";
    }

    /**
     * 待完成分配任务
     *
     * @param checkPeriod
     * @param projectName
     * @return
     */
    public static String toCompleteTheAssignedTask(String checkPeriod, String projectName) {
        return "您有一个待完成分配任务：请为" + QuarterUtil.parseCheckPeriod(checkPeriod) + "《" + projectName + "》分配贷后管理项目负责客户经理";

    }

    public static String theProjectIsApproachingItsDeadline() {
        return "您有一个项目即将到达截止时间，请及时通知相关人员处理";
    }

    /**
     * 报告编辑-待提交申请
     *
     * @param projectName
     * @return
     */
    public static String pendingApplication(String projectName) {
        return "您有一个待提交任务：请查看" + QuarterUtil.getNowQuarter() + "《" + projectName +
                "》贷后管理项目报告，完成编辑、核对，并提交申请";
    }

    public static String jiuQiStatement(String projectName) {
        return "您有一个待上传数据任务（久其报表）：请上传" + QuarterUtil.getNowQuarter() + "《" + projectName + "》财务数据（请在【数据上传管理】模块上传久其报表导出表格";
    }

    public static String BankCreditReport(String projectName) {
        return "您有一个待上传数据任务（人行征信报告）：请上传" + QuarterUtil.getNowQuarter() + "《" + projectName + "》征信数据（请在【数据上传管理】模块上传人行征信报告";
    }

    public static String userRegistration(String userName) {
        return "有新用户(" + userName + ")注册，请尽快分配角色";
    }
}
